<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/loginredirect.jsp"%>
<head>
    <title><fmt:message key="searchPerson.title"/></title>
    <meta name="heading" content="<fmt:message key='searchPerson.searchPerson'/>"/>
</head>

<form:form commandName="basicInfo" method="post" action="searchform" id="basicInfo" onsubmit="return validateCountry(this)">
<form:errors path="*" cssClass="error" element="div"/>
<form:hidden path="id"/>
<ul>
    <li>
        <appfuse:label styleClass="desc" key="searchPerson.firstName"/>
        <form:errors path="firstName" cssClass="fieldError"/>
        <form:input path="firstName" id="firstName" cssClass="text medium" cssErrorClass="text medium error" maxlength="50"/>
    
    </li>
    <li>
        <appfuse:label styleClass="desc" key="searchPerson.lastName"/>
        <form:errors path="lastName" cssClass="fieldError"/>
        <form:input path="lastName" id="lastName" cssClass="text medium" cssErrorClass="text medium error" maxlength="50"/>
    </li>
    <li>
        <appfuse:label styleClass="desc" key="searchPerson.socScrNo"/>
        <form:errors path="socScrNo" cssClass="fieldError"/>
        <form:input path="socScrNo" id="socScrNo" cssClass="text medium" cssErrorClass="text medium error" maxlength="50"/>
    </li>

    <li class="buttonBar bottom">
        <input type="submit" class="button" name="search" value="<fmt:message key="button.search"/>"/>
        <input type="submit" class="button" name="cancel" value="<fmt:message key="button.cancel"/>" onclick="bCancel=true"/>
    </li>
</ul>
</form:form>

<display:table name="basicInfoList" class="table" requestURI="" id="basicInfoList" export="false" pagesize="25">
    
    <display:column property="firstName" sortable="true" titleKey="basicInfo.lastName"/>
    <display:column property="lastName" sortable="true" titleKey="basicInfo.fathersName"/>
    <display:column property="socScrNo" sortable="true" titleKey="basicInfo.firstName"/>
    </display:table>

<v:javascript formName="searchWorkPositionForm" cdata="false" dynamicJavascript="true" staticJavascript="false"/>
<script type="text/javascript" src="<c:url value='/scripts/validator.jsp'/>"></script>

<script type="text/javascript">
    Form.focusFirstElement($('searchWorkPositionForm'));
</script>

<script type="text/javascript">
    highlightTableRows("basicInfoList");
</script> 